const state = {
  pdf: {},
  sum: [],
  price: 0
};

const mutations = {
  SET_PDF(state:any, payload:any) {
    state.pdf = payload;
  },
  SET_SUM(state:any, payload:any) {
   state.sum.push(payload)
  },
  SET_PRICE(state:any, payload:any) {
   state.price = payload
  } ,
  DEL_SUM(state:any, payload:any) {
    state.sum = []
   },
  DEL_PRICE(state:any, payload:any) {
    state.price = 0
   },
}

const actions = {
}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
};
